<div class="ciuusers index">
	<h2><?php __('Ciuusers');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('name');?></th>
			<th><?php echo $this->Paginator->sort('password');?></th>
			<th><?php echo $this->Paginator->sort('first_names');?></th>
			<th><?php echo $this->Paginator->sort('last_names');?></th>
			<th><?php echo $this->Paginator->sort('document_type');?></th>
			<th><?php echo $this->Paginator->sort('document');?></th>
			<th><?php echo $this->Paginator->sort('expedition_date');?></th>
			<th><?php echo $this->Paginator->sort('birthday');?></th>
			<th><?php echo $this->Paginator->sort('address');?></th>
			<th><?php echo $this->Paginator->sort('telephone');?></th>
			<th><?php echo $this->Paginator->sort('email');?></th>
			<th><?php echo $this->Paginator->sort('academic_level');?></th>
			<th><?php echo $this->Paginator->sort('occupation');?></th>
			<th><?php echo $this->Paginator->sort('occupation_description');?></th>
			<th><?php echo $this->Paginator->sort('ciuuserstate_id');?></th>
			<th><?php echo $this->Paginator->sort('ciuusertype_id');?></th>
			<th><?php echo $this->Paginator->sort('contact_name');?></th>
			<th><?php echo $this->Paginator->sort('contact_telephone');?></th>
			<th><?php echo $this->Paginator->sort('created');?></th>
			<th><?php echo $this->Paginator->sort('modified');?></th>
			<th><?php echo $this->Paginator->sort('isactive');?></th>
			<th><?php echo $this->Paginator->sort('ciustudenttype_id');?></th>
			<th><?php echo $this->Paginator->sort('ciuteachertype_id');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($ciuusers as $ciuuser):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $ciuuser['Ciuuser']['id']; ?>&nbsp;</td>
		<td><?php echo $ciuuser['Ciuuser']['name']; ?>&nbsp;</td>
		<td><?php echo $ciuuser['Ciuuser']['password']; ?>&nbsp;</td>
		<td><?php echo $ciuuser['Ciuuser']['first_names']; ?>&nbsp;</td>
		<td><?php echo $ciuuser['Ciuuser']['last_names']; ?>&nbsp;</td>
		<td><?php echo $ciuuser['Ciuuser']['document_type']; ?>&nbsp;</td>
		<td><?php echo $ciuuser['Ciuuser']['document']; ?>&nbsp;</td>
		<td><?php echo $ciuuser['Ciuuser']['expedition_date']; ?>&nbsp;</td>
		<td><?php echo $ciuuser['Ciuuser']['birthday']; ?>&nbsp;</td>
		<td><?php echo $ciuuser['Ciuuser']['address']; ?>&nbsp;</td>
		<td><?php echo $ciuuser['Ciuuser']['telephone']; ?>&nbsp;</td>
		<td><?php echo $ciuuser['Ciuuser']['email']; ?>&nbsp;</td>
		<td><?php echo $ciuuser['Ciuuser']['academic_level']; ?>&nbsp;</td>
		<td><?php echo $ciuuser['Ciuuser']['occupation']; ?>&nbsp;</td>
		<td><?php echo $ciuuser['Ciuuser']['occupation_description']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($ciuuser['Ciuuserstate']['name'], array('controller' => 'ciuuserstates', 'action' => 'view', $ciuuser['Ciuuserstate']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($ciuuser['Ciuusertype']['name'], array('controller' => 'ciuusertypes', 'action' => 'view', $ciuuser['Ciuusertype']['id'])); ?>
		</td>
		<td><?php echo $ciuuser['Ciuuser']['contact_name']; ?>&nbsp;</td>
		<td><?php echo $ciuuser['Ciuuser']['contact_telephone']; ?>&nbsp;</td>
		<td><?php echo $ciuuser['Ciuuser']['created']; ?>&nbsp;</td>
		<td><?php echo $ciuuser['Ciuuser']['modified']; ?>&nbsp;</td>
		<td><?php echo $ciuuser['Ciuuser']['isactive']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($ciuuser['Ciustudenttype']['name'], array('controller' => 'ciustudenttypes', 'action' => 'view', $ciuuser['Ciustudenttype']['id'])); ?>
		</td>
		<td><?php echo $ciuuser['Ciuuser']['ciuteachertype_id']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View', true), array('action' => 'view', $ciuuser['Ciuuser']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $ciuuser['Ciuuser']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $ciuuser['Ciuuser']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ciuuser['Ciuuser']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Ciuuser', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Ciuuserstates', true), array('controller' => 'ciuuserstates', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Ciuuserstate', true), array('controller' => 'ciuuserstates', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Ciuusertypes', true), array('controller' => 'ciuusertypes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Ciuusertype', true), array('controller' => 'ciuusertypes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Ciustudenttypes', true), array('controller' => 'ciustudenttypes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Ciustudenttype', true), array('controller' => 'ciustudenttypes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Ciucontracts', true), array('controller' => 'ciucontracts', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Ciucontract', true), array('controller' => 'ciucontracts', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Ciucourses', true), array('controller' => 'ciucourses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Ciucourse', true), array('controller' => 'ciucourses', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Ciucourse Ciustudents', true), array('controller' => 'ciucourse_ciustudents', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Ciucourse Ciustudent', true), array('controller' => 'ciucourse_ciustudents', 'action' => 'add')); ?> </li>
	</ul>
</div>